package com.sora.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ResultCode {

    SUCCESS(1000,"操作成功"),

    UNAUTHORIZED(1002, "没有登录"),

    FAILED(1003,"响应失败"),

    VALIDATE_FAILED(1004,"参数校验失败"),

    NAME_EXIST(1005,"该用户名已存在"),

    TOKEN_TIME_OUT(1006,"token过期"),

    ERROR(5000,"未知错误");

    private int code;
    private String msg;


}
